#pragma once
#include "TileNode.h"
#include "ObjectImage.h"
#include <vector>
class CTileMap
{
public:
	CTileMap(void);
	~CTileMap(void);

	bool	Initiallize(int index, CObjectImage* TileImage);
	void	UnInitiallize();
	void	Render(HDC hdc);

	int		GetTileMapX(int Index);
	int		GetTileMapY(int Index);
	int		GetTiletype(int Index);

public:
	inline int	GetTileMap_Width()	{ return m_width; }
	inline int	GetTileMap_Height()	{ return m_height; }
protected:
	CTileNode		*m_Tile;
	int				m_width;
	int				m_height;

	CObjectImage*	m_TileImage;

	//std::vector<ObjectInterface >
};

